import http from "./http.js";
const item = function (url) {
	return {
		send: function(data) {
			return new Promise((resolve, reject) => {
				http.post({
					url,
					data
				}).then(res => {
					resolve(res);
				}).catch(err => {
					reject(err);
				});
			});
		}
	};
};

export default item;